# coding:utf-8
"""
    @project: automated_testing_platform
    @Author：caicaizi
    @file： config.py
    @date：2023/5/30 15:06
"""
# 操作命令选项
ORDER_CHOICES = (
        ('', ''),
        ('get_executor', 'get_executor'),
        ('quit_driver', 'quit_driver'),
        ('open_url', 'open_url'),
        ('get_page_source', 'get_page_source'),
        ('get_element', 'get_element'),
        ('get_elements', 'get_elements'),
        ('click_element', 'click_element'),
        ('clear_element', 'clear_element'),
        ('send_keys', 'send_keys'),
        ('submit', 'submit'),
        ('get_text', 'get_text'),
        ('get_tag_name', 'get_tag_name'),
        ('element_is_selected', 'element_is_selected'),
        ('element_is_enabled', 'element_is_enabled'),
        ('element_is_displayed', 'element_is_displayed'),
        ('get_attribute', 'get_attribute'),
        ('get_property', 'get_property'),
        ('get_css_property', 'get_css_property'),
        ('accept_alert', 'accept_alert'),
        ('dismiss_alert', 'dismiss_alert'),
        ('get_alert_text', 'get_alert_text'),
        ('send_keys_to_alert', 'send_keys_to_alert'),
        ('get_current_window_handle', 'get_current_window_handle'),
        ('get_window_handles', 'get_window_handles'),
        ('switch_to_window', 'switch_to_window'),
        ('switch_to_frame', 'switch_to_frame'),
        ('switch_to_parent_frame', 'switch_to_parent_frame'),
        ('select_by_text', 'select_by_text'),
        ('select_by_index', 'select_by_index'),
        ('select_by_value', 'select_by_value'),
        ('deselect_all', 'deselect_all'),
        ('deselect_by_value', 'deselect_by_value'),
        ('deselect_by_index', 'deselect_by_index'),
        ('deselect_by_visible_text', 'deselect_by_visible_text'),
        ('back', 'back'),
        ('forward', 'forward'),
        ('refresh', 'refresh'),
        ('minimize_window', 'minimize_window'),
        ('maximize_window', 'maximize_window'),
        ('close', 'close'),
        ('get_driver_title', 'get_driver_title'),
        ('get_current_url', 'get_current_url'),
        ('context_click_element', 'context_click_element'),
        ('double_click_element', 'double_click_element'),
        ('move_to_element', 'move_to_element'),
        ('click_and_hold', 'click_and_hold'),
)

# 定位方式选择
LOCATE_CHOICES = (
    ('', ''),
    ('xpath', 'xpath'),
    ('id', 'id'),
    ('class', 'class'),
    ('tag_name', 'tag_name'),
    ('css', 'css'),
    ('link_text', 'link_text'),
    ('partial_link_text', 'partial_link_text')
)

# 浏览器选项
BROWSER_CHOICES = (
    ('chrome', 'chrome'),
    ('firefox', 'firefox'),
    ('ie', 'ie'),
    ('edge', 'edge')
)
